import request from '../utils/request';

//学生表管理表项
export const fetchgetparts = query => {
    return request({
        url: '/system/apis/student',
        method: 'get',
        params: query
    });
};
export const fetchupdateparts = query => {
    return request({
        url: '/system/apis/student',
        method: 'put',
        data: query
    });
};

export const partsdelete = query => {
    return request({
        url: '/system/apis/student',
        method: 'delete',
        data: query
    });
};

export const partsadd = query => {
    return request({
        url: '/system/apis/student',
        method: 'post',
        data: query
    });
};


//病历表管理表项
export const fetchgetmedical = query => {
    return request({
        url: '/system/apis/medical_record',
        method: 'get',
        params: query
    });
};
export const fetchupdatemedical = query => {
    return request({
        url: '/system/apis/medical_record',
        method: 'put',
        data: query
    });
};

export const medicaldelete = query => {
    return request({
        url: '/system/apis/medical_record',
        method: 'delete',
        data: query
    });
};

export const medicalAdd = query => {
    return request({
        url: '/system/apis/medical_record',
        method: 'post',
        data: query
    });
};


//体检表管理表项
export const fetchgetphysical = query => {
    return request({
        url: '/system/apis/physical_exam',
        method: 'get',
        params: query
    });
};
export const fetchupdatephysical = query => {
    return request({
        url: '/system/apis/physical_exam',
        method: 'put',
        data: query
    });
};

export const physicaldelete = query => {
    return request({
        url: '/system/apis/physical_exam',
        method: 'delete',
        data: query
    });
};

export const physicalAdd = query => {
    return request({
        url: '/system/apis/physical_exam',
        method: 'post',
        data: query
    });
};
